#include<string>
#include<iostream>
#include<cstdio>
using namespace std;
int main(){
    string a;
    int b;
    scanf("%d",&b);
    cin>>a;
    int c=a.size();
    int pos=c-b;
    
    cout<<a.replace(pos,c-b,"*");
}
 
